﻿using System;
using System.Text;

namespace KPIS.GERP.GAMS.MODEL
{
    [Serializable]
    public class M_ACM_SystemControls
    {
        private Nullable<int> USE_DECIMAL;
        private Nullable<int> DEFAULT_BGM_YEAR;
        private Nullable<double> DEFAULT_VAT_RATE;
        private Nullable<double> DEFAULT_TAX_RATE;
        private Nullable<int> DEFAULT_CURRENCY_SEQ;

        private Nullable<int> CREATED_BY;
        private Nullable<DateTime> CREATED_WHEN;
        private Nullable<int> UPDATED_BY;
        private Nullable<DateTime> UPDATED_WHEN;

        public M_ACM_SystemControls()
        {

        }

        public M_ACM_SystemControls(
            Nullable<int> USE_DECIMAL
            , Nullable<int> DEFAULT_BGM_YEAR
            , Nullable<double> DEFAULT_VAT_RATE
            , Nullable<double> DEFAULT_TAX_RATE
            , Nullable<int> DEFAULT_CURRENCY_SEQ

            , Nullable<int> CREATED_BY
            , Nullable<DateTime> CREATED_WHEN
            , Nullable<int> UPDATED_BY
            , Nullable<DateTime> UPDATED_WHEN)
        {
            this.USE_DECIMAL = USE_DECIMAL;
            this.DEFAULT_BGM_YEAR = DEFAULT_BGM_YEAR;
            this.DEFAULT_VAT_RATE = DEFAULT_VAT_RATE;
            this.DEFAULT_TAX_RATE = DEFAULT_TAX_RATE;
            this.DEFAULT_CURRENCY_SEQ = DEFAULT_CURRENCY_SEQ;

            this.CREATED_BY = CREATED_BY;
            this.CREATED_WHEN = CREATED_WHEN;
            this.UPDATED_BY = UPDATED_BY;
            this.UPDATED_WHEN = UPDATED_WHEN;
        }

        public Nullable<int> use_decimal
        {
            set { USE_DECIMAL = value; }
            get { return USE_DECIMAL; }
        }

        public Nullable<int> default_bgm_year
        {
            set { DEFAULT_BGM_YEAR = value; }
            get { return DEFAULT_BGM_YEAR; }
        }

        public Nullable<double> default_vat_rate
        {
            set { DEFAULT_VAT_RATE = value; }
            get { return DEFAULT_VAT_RATE; }
        }

        public Nullable<double> default_tax_rate
        {
            set { DEFAULT_TAX_RATE = value; }
            get { return DEFAULT_TAX_RATE; }
        }

        public Nullable<int> default_currency_seq
        {
            set { DEFAULT_CURRENCY_SEQ = value; }
            get { return DEFAULT_CURRENCY_SEQ; }
        }

        //====================================================================

        public Nullable<int> created_by
        {
            set { CREATED_BY = value; }
            get { return CREATED_BY; }
        }

        public Nullable<DateTime> created_when
        {
            set { CREATED_WHEN = value; }
            get { return CREATED_WHEN; }
        }

        public Nullable<int> updated_by
        {
            set { UPDATED_BY = value; }
            get { return UPDATED_BY; }
        }

        public Nullable<DateTime> updated_when
        {
            set { UPDATED_WHEN = value; }
            get { return UPDATED_WHEN; }
        }
    }
}
